package com.cb.zuul;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

import com.cb.zuul.filter.AccessFilter;

@SpringBootApplication
@EnableDiscoveryClient
@EnableZuulProxy
public class Application {
	public static void main(String[] args) {
        new SpringApplicationBuilder(Application.class).web(true).run(args);
    }
	
	@Bean
	public AccessFilter accessFilter(){
		return new AccessFilter();
	}
}
